import {BasicColumn, FormSchema} from '@/components/table';

export const columns: BasicColumn[] = [
  {
    title: '关键词',
    dataIndex: 'content',
    width: 200,
  },
  {
    title: '排序号',
    dataIndex: 'sortOrder',
    sorter:true,
    width: 200,
  },
  {
    title: '创建时间',
    dataIndex: 'createTime',
    width: 200,
  },
];

export const searchFormSchema: FormSchema[] = [
  {
    field: 'content',
    label: '关键词',
    component: 'Input',
    colProps: {span: 4},
  },
];

export const formSchema: FormSchema[] = [
  {
    label: '关键词',
    field: 'content',
    component: 'Input',
    required: true,
  },
  {
    label: '排序号',
    field: 'sortOrder',
    component: 'InputNumber',
    required: true,
  }
];
